<?php

class Article extends Controller {
	private $arr_vars;
	
	function __construct()
	{
		parent::Controller();
		$this->arr_vars['js'] = array(
		);
		$this->lang->load('admin/header', 'english');
		$this->lang->load('button', 'english');
		
		$this->load->helper('language');
		$this->load->helper('url');
	}
	
	function index()
	{		
		$this->lang->load('admin/article/list', 'english');
		
		$this->load->database();
		
		$this->arr_vars['results'] =  $this->db->query('SELECT cod_article, vch_title, txt_article FROM article');
		
		$this->load->view('admin/article/list', $this->arr_vars);		
	}
	
	function create(){
		$this->lang->load('admin/article/create', 'english');
		$this->load->helper('form');
		
		$this->load->view('admin/article/create', $this->arr_vars);
	}
	
	function __destruct(){
				
	}
}

/* End of file article.php */
/* Location: ./system/application/controllers/admin/article.php */